package com.hmall.cart;

import com.hmall.api.client.ItemClient;
import com.hmall.api.config.DefaultFeignConfig;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.openfeign.EnableFeignClients;

@MapperScan("com.hmall.cart.mapper")
//方法一解决抽离出去的Feignclient  basePackages作用是扫描指定包下的FeignClient
@EnableFeignClients(basePackages = "com.hmall.api.client")
//@EnableFeignClients(clients = {ItemClient.class})
//在@EnableFeignClients中配置，针对所有FeignClient生效。
//@EnableFeignClients(defaultConfiguration = DefaultFeignConfig.class)

@SpringBootApplication
public class CartApplication {
    public static void main(String[] args) {
        SpringApplication.run(CartApplication.class, args);
    }
}